<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/my/sharkcms/Public/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/my/sharkcms/Public/home/css/style.css" rel="stylesheet" type="text/css" />
<link href="/my/sharkcms/Public/home/css/uc.css" rel="stylesheet" type="text/css" />
<script src="/my/sharkcms/Public/js/jquery.js"></script>
<script src="/my/sharkcms/Public/bootstrap/js/bootstrap.min.js"></script>
<title><?php echo __SYSTEMNAME__; echo ($config["tittle"]); ?></title>
<script>
$(document).ready(function(){
	//退出登录页面
   $('.outlogin').click(function(){                   
      var url="<?php echo U('Public/outlogin');?>";
      $.post(url,function(data){
	     $(".logininfor").html('<a href="<?php echo U("Index/login");?>" style=" color:#B61D1D;">&nbsp;您好，&nbsp;&nbsp;请登录</a>&nbsp;&nbsp;<a href="<?php echo U("Index/reg");?>">免费注册</a>');
	  });
	  return false;
   });
});
</script>
</head>

<body>
<script>
   $(document).ready(function(){
      $(".h_hover_li").hover(function(){
	      $(this).css({"border":"1px solid #ddd","background":"#fff","borderBottom":"0px"});
		  $(this).find("b").css({"backgroundPosition":"-90px -43px"});
		  $(this).next().css({"visibility":"visible"});
	  },function(){
	      $(this).css({"border":"1px solid #fff","background":"none"});
		  $(this).find("b").css({"backgroundPosition":"-90px -53px"});
		  $(this).next().css({"visibility":"hidden"});
	  });
	  $(".h_hover_extend").hover(function(){
	      $(this).prev().css({"border":"1px solid #ddd","background":"#fff","borderBottom":"0px"});
		  $(this).prev().find("b").css({"backgroundPosition":"-90px -43px"});
		  $(this).css({"visibility":"visible"});
	  },function(){
	      $(this).prev().css({"border":"1px solid #fff","background":"none","borderBottom":"0px"});
		  $(this).prev().find("b").css({"backgroundPosition":"-90px -53px"});
		  $(this).css({"visibility":"hidden"});
	  });
   });
</script>

     <div class="reg_line1" align="center">
	    <div class="reg_line1_main">
		    <div class="fl reg_line1_main_l"> <b class="regbg"></b>收藏<?php echo __SYSTEMNAME__;?></div>
			<div class="fr reg_line1_main_r">
			    <ul>
				   <li class="logininfor">
                      <?php if(session('uid')): ?><a href="<?php echo U("User/index");?>" class="loginname"><?php echo getUserName(session('uid'));?></a>&nbsp;&nbsp;<a href="#" class="outlogin">[退出]</a>
		               <?php else: ?>
		                  <a href="<?php echo U('Index/login');?>" style=" color:#B61D1D;">&nbsp;您好，&nbsp;&nbsp;请登录</a>&nbsp;&nbsp;<a href="<?php echo U('Index/reg');?>">免费注册</a><?php endif; ?>
				   </li>
				   <li><s></s><a href="#" class="heightgray">我的订单</a></li>
				   <li><s></s><a href="#" class="heightgray">手机<?php echo __SYSTEMNAME__;?></a></li>
				   <li>
				       <s></s><div class="fl h_hover_li"><a href="#" class="heightgray fl">客户服务</a><b></b></div>
					   <div class="h_hover_extend" >
					         <a href="#">常见问题</a><br /><a href="#">售后服务</a><br /><a href="#">在线客服</a>
					         <br /><a href="#">投诉中心</a><br /><a href="#">客服邮箱</a>
					   </div>
					</li>
				</ul>  
			</div>
		</div>
	 </div>





<div align="center">
    <div class="cartcontent">
	  <div class="cart_head">
	    <div id="cartlogo" class="fl"><a href="/my/sharkcms/index.php"><img src="/my/sharkcms/Public/home/images/logo.png" />&nbsp;&nbsp;个人中心</a></div>
		<div class="cart_search fr">
		    <div class="input-group">
			    <input class="form-control" maxlength="20" placeholder="输入您需要查找的内容" />
				<span class="input-group-addon">搜索</span>
			</div>
		</div>
		<div class="clear"></div>
		<div class="shop_nav">
		   <div class="shop_nav_nav1 fl">全部商品分类</div>
		   <div class="shop_nav_nav2 fl">
		      <ul>
			     <li><a href="/my/sharkcms">首页</a></li>
				 <li><a href="#">服装城</a></li>
				 <li><a href="#">美食</a></li>
				 <li><a href="#">团购</a></li>
				 <li><a href="#">夺宝岛</a></li>
			  </ul>
		   </div>
		</div>
	 </div>
</div>
<div class="h10"></div>

<link href="/my/sharkcms/font/font-awesome-4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>


<div align="center">
    <div class="cartcontent">
        	  <div class="fl">
        <div class="uc_menu">
		   <div class="uc_menu_nav1">
		      <a href="/my/sharkcms/index.php/Home/User"><span class="fa fa-street-view colororg "></span>&nbsp;我的<?php echo __SYSTEMNAME__;?></a>
		   </div>
		   <div class="uc_menu_nav2">
		      <dl>
			     <dt>我的交易</dt>
				 <dd class="slidemrnu"><a href="<?php echo U('myorder');?>">我的订单</a></dd>
				 <dd class="slidemrnu"><a href="#">评价订单</a></dd>
				 <dd class="slidemrnu"><a href="#">取消订单记录</a></dd>
			  </dl>
		   </div>

		   <div class="uc_menu_nav2">
		      <dl>
			     <dt>关注中心</dt>
				 <dd class="slidemrnu"><a href="<?php echo U('my_watch');?>">关注的商品</a></dd>
				 <dd class="slidemrnu"><a href="<?php echo U('my_view');?>">浏览历史</a></dd>
			  </dl>
		   </div>

		   <!-- <div class="uc_menu_nav2">
		      <dl>
			     <dt>关注中心</dt>
				 <dd class="slidemrnu"><a href="#">关注的商品</a></dd>
				 <dd class="slidemrnu"><a href="#">浏览历史</a></dd>
			  </dl>
		   </div>

		   <div class="uc_menu_nav2">
		      <dl>
			     <dt>我的资产</dt>
				 <dd class="slidemrnu"><a href="#">我的积分</a></dd>
				 <dd class="slidemrnu"><a href="#">我的抵用券</a></dd>
				 <dd class="slidemrnu"><a href="#">礼品卡</a></dd>
				 <dd class="slidemrnu"><a href="#">账户余额</a></dd>
			  </dl>
		   </div>

		   <div class="uc_menu_nav2">
		      <dl>
			     <dt>在线客服</dt>
				 <dd class="slidemrnu"><a href="#">在线投诉</a></dd>
				 <dd class="slidemrnu"><a href="#">在线退换货</a></dd>
				 <dd class="slidemrnu"><a href="#">发票中心</a></dd>
			  </dl>
		   </div> -->
		   <div class="uc_menu_nav2">
		      <dl>
			     <dt>个人设置</dt>
				 <dd class="slidemrnu"><a href="<?php echo U('my_info');?>">个人信息</a></dd>
				 <dd class="slidemrnu"><a href="<?php echo U('my_address');?>">收货地址</a></dd>
				 <dd class="slidemrnu"><a href="#">安全设置</a></dd>
			  </dl>
		   </div>
         </div>
		</div>
		<div class="fl print_area">
            <div class="uc_orderdt_tittle">
			    <div class="fl ml10">
				   <span class="fwb">订单编号:&nbsp;&nbsp;&nbsp;</span><?php echo ($data["od_no"]); ?>
				</div>
			    <div class="fl ml30">
				   <span class="fwb">&nbsp;&nbsp;&nbsp;订单状态:&nbsp;&nbsp;&nbsp;</span>
				   <?php if($data[0]['od_status'] == 0): ?><span class="colorred2">未付款</span>
				   <?php elseif($data[0]['od_status'] == 1): ?>待收货
				   <?php elseif($data[0]['od_status'] == 2): ?>待自提
				   <?php elseif($data[0]['od_status'] == 3): ?>待评价
				   <?php elseif($data[0]['od_status'] == 4): ?>已完成<?php endif; ?>
				</div>
			    <div class="fl ml30">
				   <span class="fwb">&nbsp;&nbsp;&nbsp;下单时间:&nbsp;&nbsp;&nbsp;</span><?php echo date("Y-m-d H:i:s",$data['od_createtime']);?>
				</div>				
				<div class="fr abtn4 print_button" >打印订单</div>
			</div>
			<div class="uc_orderdt_content">
			    <div class="uc_orderdt_content_tittle fwb">订单信息</div>
				<div class="uc_orderdt_cc">
				    <div class="uc_orderdt_cct">
					    <span class="fwb">收货人信息</span>
						<br />收&nbsp;&nbsp;货&nbsp;&nbsp;人：<?php echo ($data["od_address"]["receiver"]); ?>
						<br />地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址：<?php echo ($data["od_address"]["mobile"]); ?>
						<br />电子邮件：<?php echo ($data["od_address"]["email"]); ?>
					</div>
				    <div class="uc_orderdt_cct">
					    <span class="fwb">支付及配送方式</span>
						<br />支付方式：<?php echo getPayName($data['payway_id']);?>
						<br />配送方式：<?php echo getSendName($data['sendway_id']);?>
						<br />运&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;费：0<sapn class="money">￥</span>
						
					</div>
				    <div class="uc_orderdt_cct">
					   <div> <span class="fwb">商品清单</span></div>
					   <table class="uc_orderdt_cct_wrap">
					       <tr class="uc_orderdt_cct_tittle" >
						      <td width="120px">商品编号</td>
							  <td width="200px">商品图片</td>
							  <td width="255px">商品名称</td>
							  <td width="120px">商品单价</td>
							  <td width="120px">商品数量</td>
						   </tr>
						   <?php if(is_array($goods)): $key = 0; $__LIST__ = $goods;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$good): $mod = ($key % 2 );++$key;?><tr class="uc_orderdt_cct_tr">
						      <td align="center"><?php echo ($key); ?> </td>
							  <td align="center" >
							     <a href="<?php echo U("Index/detail",array("id"=>$good['go_id']));?>"><img src="<?php echo getalbumface($good['go_pics']);?>" width="50px" height="50px" /></a>
							  </td>
							  <td align="center" class="ellipsis colorred" style="width:250px;line-height:100px;">
							     <?php echo getgoName($good['go_id']);?>
							  </td>
							  <td align="center"><?php echo ($good['go_value']); ?></td>
							  <td align="center"><?php echo ($good['go_number']); ?></td>
						   </tr><?php endforeach; endif; else: echo "" ;endif; ?>
					   </table>
					</div>
                    <div class="uc_orderdt_ccfoot">
					    <div class="uc_orderdt_ccfootr">
						   <div class="uc_orderdt_ccfootrup">
						      <table>
							     <tr>
								    <td align="right">总商品金额：</td>
									<td>&nbsp;&nbsp;¥<?php echo ($total); ?></td>
								 </tr>
								 <tr>
								    <td align="right">-返现：</td>
									<td>&nbsp;&nbsp;¥0.00</td>
								 </tr>
								 <tr style=" border-bottom:2px solid #999;">
								    <td align="right">+运费：</td>
									<td>&nbsp;&nbsp;¥0.00</td>
								 </tr>
								 <tr>
								    <td align="right" class="f16 fwb" width="100px">应付金额：</td>
									<td class="colorred2 f20 fwb" width="50px">&nbsp;¥<?php echo ($total); ?></td>
								 </tr>
							  </table>
						   
						   </div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	 </div>
</div> 
<script>

$(document).ready(function(){
  $(".print_button").click(function(){
     $(".print_area").printArea();  
  });
});	
	
</script>

</body>
</html>